﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MyVoteMVC.Common;
using System.Configuration;

namespace MyVoteMVC.Extensions
{
    public class VoteFactoryInitializer : IFactoryInitializer
    {
        public IEnumerable<FactoryConfigSection> GetSectionIterator()
        {
            yield return (FactoryConfigSection)ConfigurationManager.GetSection("FactoryConfig/Repository");
           
            yield return (FactoryConfigSection)ConfigurationManager.GetSection("FactoryConfig/Service");
            
            yield return (FactoryConfigSection)ConfigurationManager.GetSection("FactoryConfig/UnitOfWork");

            yield break;
        }
    }
}